package com.fire.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fire.bo.other.req.CollectCountReq;
import com.fire.bo.other.res.CollectCountRes;
import com.fire.dao.OtherDao;
import com.fire.service.OtherService;

@Service
public class OtherServiceImpl implements OtherService {

	@Autowired
	private OtherDao otherDao;

	@Override
	public List<CollectCountRes> findCollectCountList(CollectCountReq bean) throws SQLException {
		bean.setPage((bean.getPage()-1)*bean.getPageSize());
		return otherDao.findCollectCountList(bean);
	}

	@Override
	public int findCollectCountListCount(CollectCountReq bean) throws SQLException {
		return otherDao.findCollectCountListCount(bean);
	}
	
	

}
